import java.io.IOException;
import java.net.URL;
import java.net.URLConnection;
import java.util.Properties;

import websphinx.Link;
import websphinx.Page;


public class TestCrawler {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Properties props = System.getProperties();
		props.setProperty("http.proxyHost", "isa.idc.ac.il");
		props.put("http.proxyPort", "8080");
		
		try {
			Crawler2 c = new Crawler2();
			c.setRoot(new Link("http://www.google.com/"));
/*//			c.visit(new Page(new Link("http://www2.shopping.com/")));
			URL url = new URL ("http://www.google.com/");
			URLConnection uc = url.openConnection();
			System.out.println(uc.getURL());
			uc.connect();
			System.out.println(uc.getDate());*/
			c.run();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
